package com.myecl.poker.util;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class Logging {
	private static final Logger LOGGER = LogManager.getLogger("Server");
	
	private static final int NORMAL= 1;
	private static final int BRIGHT = 1;
	public static final int BLACK = 30;
	public static final int RED = 31;
	
	
	private static final String PREFIX = "\u001b[";
    private static final String SUFFIX = "m";
    private static final String SEPARATOR = ";";
    private static final String END_COLOUR = PREFIX + SUFFIX;  

   
   public static void trace(String text) {
	   LOGGER.trace(text);
   }

    public static String color(String text, int color) {
    	return PREFIX + BRIGHT + SEPARATOR + color + SUFFIX + text + END_COLOUR;
    }
    
    
	
}
